package string;

/**
 * @Author Klys
 * @Date 2023/6/25 9:11
 * @Description
 * @Version 1.0
 */
public class ProcessString {

    public static void main(String[] args) {

        String a = "20000904";
        String year = a.substring(0, 4);
        String me = a.substring(4, 6);
        String day = a.substring(6, 8);
        System.out.println("年：" + year + "月：" + me + "日：" + day);
        String value = year + "-" + me + "-" + day;
        System.out.println(value);

    }
}
